/* echarts 图表样式 */
/* 主体部分的样式 */
.main-content {
    margin-left: 250px;
    padding: 20px;
}

/* 容器样式，用来控制图表的布局 */
.charts {
    display: flex;
    flex-direction: column;  /* 让主图表在上面，副图表在下面 */
    gap: 20px; /* 图表之间的间隔 */
}

/* 主图表的样式 */
.chart {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 副图表的容器样式 */
.sub-charts {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* 确保副图表在小屏幕上也能响应式显示 */
@media (max-width: 1024px) {
    .sub-charts {
        flex-direction: column;
    }

    .sub-charts > .chart {
        width: 100%;
    }
}

/* 统计卡片样式 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-icon i {
    font-size: 24px;
    color: #409EFF;
}

.stat-info h3 {
    margin: 0;
    font-size: 16px;
    color: #606266;
}

.stat-info p {
    margin: 5px 0 0;
    font-size: 24px;
    font-weight: bold;
    color: #303133;
}

/* 图表区域样式 */
.charts {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sub-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }

    .sub-charts {
        grid-template-columns: 1fr;
    }
}